-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test] Add cpp linter workflow #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v12.0.0
Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
- PipelineTuningOptions pto;
+ PipelineTuningOptions Pto;
Used clang-format v12.0.0
Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
- if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+ if (F.getName().contains("jit_variable")) {
+ JitFunctions.push_back(&F);
Have any feedback or feature suggestions? Share it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v18.1.3
Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
- PipelineTuningOptions pto;
+ PipelineTuningOptions Pto;
Used clang-format v18.1.3
Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
- if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+ if (F.getName().contains("jit_variable")) {
+ JitFunctions.push_back(&F);
Have any feedback or feature suggestions? Share it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v18.1.3
Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
- PipelineTuningOptions pto;
+ PipelineTuningOptions Pto;
Used clang-format v18.1.3
Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
- if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+ if (F.getName().contains("jit_variable")) {
+ JitFunctions.push_back(&F);
Have any feedback or feature suggestions? Share it here.
pass/ProteusPass.cpp
Outdated
@@ -1067,8 +1067,7 @@ class ProteusJitPassImpl { | |||
for (auto &F : M.getFunctionList()) { | |||
// TODO: Demangle and search for the fully qualified proteus::jit_variable | |||
// name. | |||
if (F.getName().contains("jit_variable")) { | |||
JitFunctions.push_back(&F); | |||
if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestion
if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F); | |
if (F.getName().contains("jit_variable")) { | |
JitFunctions.push_back(&F); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v18.1.3
Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index 758d7fd..5cea6ea 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -139 +139 @@ void JitEngine::optimizeIR(Module &M, StringRef Arch) {
- for (int i = 0; i < 10; i++)
+ for (int I = 0; I < 10; I++)
Used clang-format v18.1.3
No concerns from clang-format.
Have any feedback or feature suggestions? Share it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v18.1.3
Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index 758d7fd..5cea6ea 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -139 +139 @@ void JitEngine::optimizeIR(Module &M, StringRef Arch) {
- for (int i = 0; i < 10; i++)
+ for (int I = 0; I < 10; I++)
Used clang-format v18.1.3
No concerns from clang-format.
Have any feedback or feature suggestions? Share it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-tidy v18.1.3
Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDeviceCUDA.cpp b/lib/JitEngineDeviceCUDA.cpp
index d6c353e..b020478 100644
--- a/lib/JitEngineDeviceCUDA.cpp
+++ b/lib/JitEngineDeviceCUDA.cpp
@@ -315 +315 @@ JitEngineDeviceCUDA::JitEngineDeviceCUDA() {
- for (int i = 0; i < 10; ++i)
+ for (int I = 0; I < 10; ++I)
Used clang-format v18.1.3
No concerns from clang-format.
Have any feedback or feature suggestions? Share it here.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.